package CarNm;

import java.util.List;

public class text0 {
    public static void main(String[] args){
        CardDemo cardDemo=new CardDemo();
        List<Card> cardList=cardDemo.buyCard();
        System.out.println("买上后的新牌:");
        System.out.println(cardList);
        cardDemo.shuffle(cardList);
        System.out.println("洗牌后的牌面；");
        System.out.println(cardList);
        List<List<Card>> ret = cardDemo.play(cardList);
        for (int i = 0; i < ret.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌："+ret.get(i));
        }

        System.out.println("剩下的牌：");
        System.out.println(cardList);


    }
}
